package com.qzct.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.qzct.entity.Cuisines;
import com.qzct.mapper.CuisinesMapper;
import com.qzct.service.CuisinesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *  服务层实现。
 *
 * @author 闽闽
 * @since 2025-01-11
 */
@Service
public class CuisinesServiceImpl extends ServiceImpl<CuisinesMapper, Cuisines> implements CuisinesService {
    @Autowired
    CuisinesMapper cuisinesMapper;

    @Override
    public int getMaxId() {
        return cuisinesMapper.getMaxId();
    }

    @Override
    public ArrayList<Integer> getHot() {
        return cuisinesMapper.getHot();
    }

    @Override
    public void addlike(Serializable id) {
        cuisinesMapper.addlike(id);
    }

    @Override
    public ArrayList<Cuisines> getList() {
        return cuisinesMapper.getList();
    }
}
